<?php
class cron extends spController{
	private $self_url = 'http://127.0.0.1:1108/toptrade';
	
	function index(){
		//每分钟执行
		file_get_contents($this->self_url.'/?a=gettrades');
		file_get_contents($this->self_url.'/?c=empire');
		
		//每十分钟执行，0,10,20,30,40,50
		if(date('i') % 10 == 0){
			file_get_contents($this->self_url.'/?a=getrefunds');
		}
		
		//每小时执行,0分
		if(date('i') == 0){
			
		}
		
		//每天执行，0时0分
		if(date('Hi') == 0){
			
		}
	}
}